<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
    This file is part of xulSword.

    Copyright 2009 John Austin (gpl.programs.info@gmail.com)

    xulSword is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    xulSword is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with xulSword.  If not, see <http://www.gnu.org/licenses/>.
!-->

<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <link rel="stylesheet" href="chrome://xulsword/skin/common/global-htm.css" type="text/css">
  <link rel="stylesheet" href="chrome://xulsword/skin/viewport/texts/text-htm.css" type="text/css">
  <link rel="stylesheet" href="chrome://xulsword/skin/viewport/texts/texts-htm.css" type="text/css">
  <link rel="stylesheet" href="chrome://xulsword/skin/dialogs/printPassage/printPassage-htm.css" type="text/css">
  
  <script>
    var watcher = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(Components.interfaces.nsIWindowWatcher); 
    var XS_window = watcher.getWindowByName("xulsword-window", window);
  </script>
  <script src="chrome://xulsword/content/common/common0.js" type="text/javascript"></script>
  <script src="chrome://xulsword/content/common/common1.js" type="text/javascript"></script>
  
  <script>

    function init() {
    
      initCSS();
      
      if (XS_window.document.getElementById("printBrowser").contentDocument === document) {
        
        if (XS_window.PrintTarget.bodyHTML) {
					sanitizeHTML(document.getElementsByTagName("body")[0], XS_window.PrintTarget.bodyHTML);
        }
        
        XS_window.printBrowserLoaded();
      }
      
    }
    
  </script>
  
  </head>
  
  <body onload="init();"></body>
  
</html>
